package com.ws.shop.entity;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

public class Auction extends BaseEntity{
	private long id;
	private String sn;
	private int gid;
	private String goodsname;
	private float goodsprice;
	private int goods_pic;
	private Date starttime;
	private Date endtime;
	private Date ordertime;
	private float startprice;
	private int addsecond;
	private float addprice;
	private int usebeat;
	private int pointc;
	private float costprice;
	private int recommend;
	private int auctioncount;
	private float realprice;
	private String auctionuname;//竞拍成功用户名称
	private int uid;
	private int robots;
	private float robotspromote;
	private int min;
	private int max;
	private float target;
	private int agoid;
	private int agopic;
	private int delaytype;
	private int type;
	private int rebate;
	private int boutlimit;
	private int iskeep;
	private int beforebout;
	private int discount;
	private int isdiscount;
	private int isfree;
	private int maxaddsecond;
	private int state;
	private String uhead;
	private double goodsfreight ; 
	private String goodsbrief ; 
	private String goodsabout;
	private int cid;//品牌，类型
	private long uptime; 
	private String thumbnail;
	private String path;
	private int bidstate = -1;
	
	private int beat = 0 ;
	private int pointb = 0;
	private long requsttime; //请求时间，
	
	private String html;
	private boolean isupdatestate = false;
	
	public final static Map<String,String> STATE_DESCS = new HashMap<String,String>();
	
	static{
		STATE_DESCS.put("0", "未开始");
		STATE_DESCS.put("1", "进行中");
		STATE_DESCS.put("2", "已结束");
		STATE_DESCS.put("3", "已产生订单");
		STATE_DESCS.put("4", "已完成晒图");
	}
	
	public Auction(){}
	
	public Auction(int id, String sn, int gid, String goodsname,
			float goodsprice, int goodsPic, Date starttime, Date endtime,
			Date ordertime, float startprice, int addsecond, float addprice,
			int usebeat, int pointc, float costprice, int recommend,
			int auctioncount, float realprice, String auctionuname, int uid,
			int robots, float robotspromote, int min, int max, float target,
			int agoid, int agopic, int delaytype, int type, int rebate,
			int boutlimit, int iskeep, int beforebout, int discount,
			int isdiscount, int isfree, int maxaddsecond, int state) {
		this.id = id;
		this.sn = sn;
		this.gid = gid;
		this.goodsname = goodsname;
		this.goodsprice = goodsprice;
		goods_pic = goodsPic;
		this.starttime = starttime;
		this.endtime = endtime;
		this.ordertime = ordertime;
		this.startprice = startprice;
		this.addsecond = addsecond;
		this.addprice = addprice;
		this.usebeat = usebeat;
		this.pointc = pointc;
		this.costprice = costprice;
		this.recommend = recommend;
		this.auctioncount = auctioncount;
		this.realprice = realprice;
		this.auctionuname = auctionuname;
		this.uid = uid;
		this.robots = robots;
		this.robotspromote = robotspromote;
		this.min = min;
		this.max = max;
		this.target = target;
		this.agoid = agoid;
		this.agopic = agopic;
		this.delaytype = delaytype;
		this.type = type;
		this.rebate = rebate;
		this.boutlimit = boutlimit;
		this.iskeep = iskeep;
		this.beforebout = beforebout;
		this.discount = discount;
		this.isdiscount = isdiscount;
		this.isfree = isfree;
		this.maxaddsecond = maxaddsecond;
		this.state = state;
	}

	public boolean isIsupdatestate() {
		return isupdatestate;
	}

	public void setIsupdatestate(boolean isupdatestate) {
		this.isupdatestate = isupdatestate;
	}

	public long getRequsttime() {
		return requsttime;
	}

	public void setRequsttime(long requsttime) {
		this.requsttime = requsttime;
	}

	public int getBeat() {
		return beat;
	}

	public void setBeat(int beat) {
		this.beat = beat;
	}

	public int getPointb() {
		return pointb;
	}

	public void setPointb(int pointb) {
		this.pointb = pointb;
	}

	public long getUptime() {
		return uptime;
	}

	public void setUptime(long uptime) {
		this.uptime = uptime;
	}

	public int getCid() {
		return cid;
	}

	public void setCid(int cid) {
		this.cid = cid;
	}

	public String getHtml() {
		return html;
	}

	public void setHtml(String html) {
		this.html = html;
	}

	public int getBidstate() {
		return bidstate;
	}

	public void setBidstate(int bidstate) {
		this.bidstate = bidstate;
	}

	public String getUhead() {
		return uhead;
	}

	public void setUhead(String uhead) {
		this.uhead = uhead;
	}

	public double getGoodsfreight() {
		return goodsfreight;
	}

	public void setGoodsfreight(double goodsfreight) {
		this.goodsfreight = goodsfreight;
	}

	public String getGoodsbrief() {
		return goodsbrief;
	}

	public void setGoodsbrief(String goodsbrief) {
		this.goodsbrief = goodsbrief;
	}

	public String getGoodsabout() {
		return goodsabout;
	}

	public void setGoodsabout(String goodsabout) {
		this.goodsabout = goodsabout;
	}

	public String getThumbnail() {
		return thumbnail;
	}

	public void setThumbnail(String thumbnail) {
		this.thumbnail = thumbnail;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getSn() {
		return sn;
	}
	public void setSn(String sn) {
		this.sn = sn;
	}
	public int getGid() {
		return gid;
	}
	public void setGid(int gid) {
		this.gid = gid;
	}
	public String getGoodsname() {
		return goodsname;
	}
	public void setGoodsname(String goodsname) {
		this.goodsname = goodsname;
	}
	public float getGoodsprice() {
		return goodsprice;
	}
	public void setGoodsprice(float goodsprice) {
		this.goodsprice = goodsprice;
	}
	public int getGoods_pic() {
		return goods_pic;
	}

	public void setGoods_pic(int goodsPic) {
		goods_pic = goodsPic;
	}

	public Date getStarttime() {
		return starttime;
	}

	public void setStarttime(Date starttime) {
		this.starttime = starttime;
	}

	public Date getEndtime() {
		return endtime;
	}

	public void setEndtime(Date endtime) {
		this.endtime = endtime;
	}

	public Date getOrdertime() {
		return ordertime;
	}

	public void setOrdertime(Date ordertime) {
		this.ordertime = ordertime;
	}

	public float getStartprice() {
		return startprice;
	}
	public void setStartprice(float startprice) {
		this.startprice = startprice;
	}
	public int getAddsecond() {
		return addsecond*1000;
	}
	public void setAddsecond(int addsecond) {
		this.addsecond = addsecond;
	}
	public float getAddprice() {
		return addprice;
	}
	public void setAddprice(float addprice) {
		this.addprice = addprice;
	}
	public int getUsebeat() {
		return usebeat;
	}
	public void setUsebeat(int usebeat) {
		this.usebeat = usebeat;
	}
	public int getPointc() {
		return pointc;
	}
	public void setPointc(int pointc) {
		this.pointc = pointc;
	}
	public float getCostprice() {
		return costprice;
	}
	public void setCostprice(float costprice) {
		this.costprice = costprice;
	}
	public int getRecommend() {
		return recommend;
	}
	public void setRecommend(int recommend) {
		this.recommend = recommend;
	}
	public int getAuctioncount() {
		return auctioncount;
	}
	public void setAuctioncount(int auctioncount) {
		this.auctioncount = auctioncount;
	}
	public float getRealprice() {
		return realprice;
	}
	public void setRealprice(float realprice) {
		this.realprice = realprice;
	}
	public String getAuctionuname() {
		return auctionuname;
	}
	public void setAuctionuname(String auctionuname) {
		this.auctionuname = auctionuname;
	}
	
	public int getUid() {
		return uid;
	}

	public void setUid(int uid) {
		this.uid = uid;
	}

	public int getRobots() {
		return robots;
	}
	public void setRobots(int robots) {
		this.robots = robots;
	}
	public float getRobotspromote() {
		return robotspromote;
	}
	public void setRobotspromote(float robotspromote) {
		this.robotspromote = robotspromote;
	}
	public int getMin() {
		return min;
	}
	public void setMin(int min) {
		this.min = min;
	}
	public int getMax() {
		return max;
	}
	public void setMax(int max) {
		this.max = max;
	}
	public float getTarget() {
		return target;
	}
	public void setTarget(float target) {
		this.target = target;
	}
	public int getAgoid() {
		return agoid;
	}
	public void setAgoid(int agoid) {
		this.agoid = agoid;
	}
	public int getAgopic() {
		return agopic;
	}
	public void setAgopic(int agopic) {
		this.agopic = agopic;
	}
	public int getDelaytype() {
		return delaytype;
	}
	public void setDelaytype(int delaytype) {
		this.delaytype = delaytype;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public int getRebate() {
		return rebate;
	}
	public void setRebate(int rebate) {
		this.rebate = rebate;
	}
	public int getBoutlimit() {
		return boutlimit;
	}
	public void setBoutlimit(int boutlimit) {
		this.boutlimit = boutlimit;
	}
	public int getIskeep() {
		return iskeep;
	}
	public void setIskeep(int iskeep) {
		this.iskeep = iskeep;
	}
	public int getBeforebout() {
		return beforebout;
	}
	public void setBeforebout(int beforebout) {
		this.beforebout = beforebout;
	}
	public int getDiscount() {
		return discount;
	}
	public void setDiscount(int discount) {
		this.discount = discount;
	}
	public int getIsdiscount() {
		return isdiscount;
	}
	public void setIsdiscount(int isdiscount) {
		this.isdiscount = isdiscount;
	}
	public int getIsfree() {
		return isfree;
	}
	public void setIsfree(int isfree) {
		this.isfree = isfree;
	}
	public int getMaxaddsecond() {
		return maxaddsecond;
	}
	public void setMaxaddsecond(int maxaddsecond) {
		this.maxaddsecond = maxaddsecond;
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	
}